# 使用官方Nginx镜像作为基础镜像  
FROM nginx 
  
# 将本地的dist文件夹复制到容器的/usr/share/nginx/html  
COPY ./dist /usr/share/nginx/html  
  
# 将自定义的nginx.conf复制到容器的/etc/nginx/nginx.conf  
COPY ./nginx.conf /etc/nginx/nginx.conf  
  
# 暴露80端口  
EXPOSE 80  
  
# 运行nginx  
CMD ["nginx", "-g", "daemon off;"]